/*
 * @Author: your name
 * @Date: 2021-12-29 17:38:11
 * @LastEditTime: 2022-02-17 14:11:47
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \my-site\src\main.js
 */
// /*
//  * @Author: una
//  * @Date: 2021-12-29 17:38:11
//  * @LastEditors: Please set LastEditors
//  * @LastEditTime: 2022-01-18 07:47:09
//  * @Description: file content
//  */
// // 入口文件
import Vue from 'vue' //引入VUE框架
import App from './App.vue' //根组件
import "./styles/global.less" //全局样式
import router from "./router" //路由实例
import "@/mock" //启动所有拦截
import vLoading from "@/directive/loading.js" //loading指令配置对象
import vLazy from "@/directive/lazy.js"
import store from "@/store"

// 向实例注入成员
// $为了和其他成员区分，默认加上
// 实例和组件实例都能继承使用
import { showMessage } from "@/utils" //提示框方法
Vue.prototype.$showMessage = showMessage

Vue.directive("loading", vLoading) //loading指令
Vue.directive("lazy", vLazy) //loading指令

// import {getPagerComment} from "@/api/blog.js"
// getPagerComment().then(r => {
//   console.log(r)
// })

const vm = new Vue({
  store,
  router,
  // render函数作用：产生虚拟dom树
  render: h => h(App),
}).$mount('#app')//通过vue实例上自带的$mount方法挂载到页面id为app区域上





